import { Module } from '@nestjs/common';
import { ArticleService } from './article.service';
import { ArticleController } from './article.controller';
import { AuthModule } from '../auth/auth.module'
import { TypeOrmModule } from '@nestjs/typeorm'
import { Article } from '../../entities/article.entity'
import { User } from 'src/entities/user.entity';
import { ArticleCover } from '../../entities/articleCover.entity'
import { ArticleMoment } from '../../entities/articleMoment.entity'
import { ArticleLike } from '../../entities/articleLike.entity'
import { ArticleCollect } from '../../entities/articleCollect.entity'


@Module({
  imports: [TypeOrmModule.forFeature([Article, User, ArticleCover, ArticleMoment, ArticleLike, ArticleCollect]), AuthModule],
  controllers: [ArticleController],
  providers: [ArticleService],
  exports: [ArticleService],
})
export class ArticleModule { }
